package com.weishu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author liyan
 * @since 2021-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysRegion extends Model<SysRegion> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "REGION_ID", type = IdType.AUTO)
    private Integer regionId;

    private String regionCode;

    private String regionName;

    private Integer parentId;

    private Integer regionLevel;

    private Integer regionOrder;

    private String regionNameEn;

    private String regionShortnameEn;

    /**
     * 开通城市 0 未开通 1 已开通
     */
    private Integer flag;

    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.regionId;
    }

}
